package day3;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class Student {
@Value("200")
private int id;
@Autowired
private Computer com;
public Student() {
	
}

public Student(Computer com) {
	this.com=com;
}
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}

public Computer getCom() {
	return com;
}

public void setCom(Computer com) {
	this.com = com;
}
@Override
public String toString() {
	return "Student [id=" + id + ", com=" + com + "]";
}

}
